﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace AliveCard {
/// <summary>
/// 游戏对象类型。
/// </summary>
public enum ObjType {
    None = -1,
    Hero,
    NPC,
    Count,
}

public class ACObjectManager : MonoBehaviour {
    static ACObjectManager m_instance;

    Dictionary<string, ACPuppet> m_objs = new Dictionary<string, ACPuppet>();
    ACPuppet m_hero = null;

    public static ACObjectManager Ins {
        get {
            if(m_instance == null) {
                GameObject obj = new GameObject("ACObjectManager");
                m_instance = obj.AddComponent<ACObjectManager>();
                m_instance.init();
            }
            return m_instance;
        }
    }

    void init() {
    }




    public ACPuppet GetHero() {
        return m_hero;
    }

    public void SetHero(ACPuppet hero) {
        m_hero = hero;
    }
}
}
